package com.example.annotation;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends Activity {
	@ViewInject(R.id.tv_test)
	private TextView tv_test;
	@ViewInject(R.id.btn_test)
	private Button btn_test;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		InjectUtils.init(this);
		
		btn_test.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				tv_test.setText("132456789");
			}
		});
	}
}